package com.ea.admin.pojo.po;

import lombok.Data;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.stereotype.Component;

/**
 * oauth2 客户端配置类
 */
@Component
@Data
public class OAuth2ClientConfiguration {
    private final PasswordEncoder passwordEncoder;

    private String clientId;
    private String secret;
    private String grant_type;
    private String scope;

    public OAuth2ClientConfiguration(PasswordEncoder passwordEncoder) {
        this.passwordEncoder = passwordEncoder;
        clientId = "client";
        secret = "EmoAnalysis";
        grant_type = "password";
        scope = "all";
    }
}
